observations
Class Registrar

java.lang.Object
  extended byobservations.Registrar

public class Registrar
extends java.lang.Object

Registrar Manages saving an retreiving to/from memory. Registrar is a singleton.

Version:
2004-09-10
Author:
Sascha Hemminger

Constructor Summary
Registrar()
           
 
Method Summary
static void add(java.lang.String entryPoint, DomainObject newObject)
          Adds an object to the registry (saves it).
static DomainObject get(java.lang.String entryPointName, java.lang.String objectName)
          Retrieves objects from the registry.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Registrar

public Registrar()
Method Detail

add

public static void add(java.lang.String entryPoint,
                       DomainObject newObject)
Adds an object to the registry (saves it).

Parameters:
entryPoint - type of the object (eg. range or phenomenon)
newObject - the object to save

get

public static DomainObject get(java.lang.String entryPointName,
                               java.lang.String objectName)
Retrieves objects from the registry.

Parameters:
entryPointName - type of the object
objectName - object's name
Returns:
the object